Method: Diff::LCS::Change#<=>

Defined in:
lib/watobo/external/diff/lcs/change.rb

#<=>(other) ⇒ Object



84
85
86
87
88
89
# File 'lib/watobo/external/diff/lcs/change.rb', line 84

def <=>(other)
  r = self.action <=> other.action
  r = self.position <=> other.position if r.zero?
  r = self.element <=> other.element if r.zero?
  r
end